package com.az.miaoapi.feign;

import com.az.miaoapi.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author zj
 * @time 2024/9/25 16:44
 */
@FeignClient(name = "user-service")
public interface UserClient {


    @GetMapping("/usr/setLikenessStatusToBuy")
    Boolean setLikenessStatusToBuy(@RequestParam("userId") Long userId,@RequestParam("productId") Integer productId);

    @GetMapping("/usr/getAddressById")
    Address getAddressById(Integer addressId);

    Map<Integer, Address> batchGetAddressesByIds(List<Integer> addressIds);
}
